package com.learning.spring.aop.aspectj.service.impl;

import com.learning.spring.aop.aspectj.service.AopService;

/**
 * ClassName: AopServiceImpl
 * Description: 业务方法
 * Date: 2019/4/21 15:35 【需求编号】
 *
 * @author Sam Sho
 * @version V1.0.0
 */
public class AopServiceImpl implements AopService {

    @Override
    public void add() {
        System.out.println("** 操作【新增】的业务 ** ");
    }

    @Override
    public void add(String name) {
        System.out.println("** 操作【新增】的业务 ** " + name);
    }

    @Override
    public void update() {
        System.out.println("** 操作【修改】的业务 ** ");
    }

    @Override
    public void error() {
        System.out.println("** 操作【异常】的业务** ");

        // 增加异常
        int i = 1 / 0;
    }
}
